<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        //第一题
        var number=prompt("请输入值");
        var arr=[];
        for(var i=0;i<number;i++){
                arr.push(i);
                continue;
        }
        console.log(arr);
        //第二题
        var number=prompt("请输入值");
         var arr=[];
        for(var i=0;i<number;i++){
                if(i%2==0){
                arr.push(i);
                }
        }
        console.log(arr);
        //第三题
        var number=prompt("请输入值");
         var arr=[];
        for(var i=0;i<number;i++){
                if(i%2!==0){
                arr.push(i);
                }
        }
        console.log(arr);
        //第四题
        var arry=[{
        name: "李明",
        score:100},
    {
        name: "小红",
        score:30},
    {
        name: "大树",
        score:90},
    {
        name: "阿才",
        score:40},
    {
        name: "东东",
        score:60},
    ];
    var arr=[];
    for(var i=0;i<arry.length;i++){
        if(arry[i].score<60){
        arr.push(arry[i].name);
    }
    }
    console.log(arr);
    </script>
</body>
</html>